"""
Author  :lee
Date    :2024/2/27 17:45
Desc    :
"""

from django.db import models


class BaseModel(models.Model):
    """基础模型"""
    created_time = models.DateTimeField('创建时间', auto_now_add=True, help_text='创建时间')
    last_mod_time = models.DateTimeField('修改时间', auto_now=True, help_text='修改时间')

    class Meta:
        abstract = True
        ordering = ['-created_time', '-last_mod_time']
